package cn.t215.cloud.api.user;

import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserServiceRemoteClientFallBack implements UserServiceRemoteClient {
    @Override
    public String hello() {
        return "UserService.hello()暂时不可用";
    }

    @Override
    public List<UserDTO> users() {
        return null;
    }

    @Override
    public UserDTO save(UserDTO user) {
        return new UserDTO().setId(-1).setName("默认名字").setPassword("无");
    }

    @Override
    public UserDTO save2(UserDTO user) {
        return null;
    }

    @Override
    public UserDTO users(String name, String password) {
        return null;
    }
}
